﻿<fieldset>
    <legend>Търси превоз: </legend>
    <label for="searchFrom">От: </label>
    <select name="City" id="searchFrom">
        <option value="0" selected>Всички</option>
        <option value="София">София</option>
        <option value="Пловдив">Пловдив</option>
        <option value="Варна">Варна</option>
        <option value="Стара Загора">Стара Загора</option>
        <option value="Русе">Русе</option>
        <option value="Плевен">Плевен</option>
        <option value="Бургас">Бургас</option>
    </select>

    <label for="searchTo">До: </label>
    <select name="City" id="searchTo">
        <option value="0" selected>Всички</option>
        <option value="София">София</option>
        <option value="Пловдив">Пловдив</option>
        <option value="Варна">Варна</option>
        <option value="Стара Загора">Стара Загора</option>
        <option value="Русе">Русе</option>
        <option value="Плевен">Плевен</option>
        <option value="Бургас">Бургас</option>
    </select>

    <!-- Take datePicker from knockout JS -->
    <label for="date-time-picker-search">Дата и час на тръгване: </label>
    <input type="text" id="date-time-picker-search" />
        
    <input type="button" value="Търси" />
</fieldset>
<script>
    $('input[type="button"]').on("click", DataManagerModule.sendSearchRequest);
    jQuery(document).ready(function () {
        // create DateTimePicker from input HTML element
        $("#date-time-picker-search").kendoDateTimePicker({
            value: new Date()   
        });
    });
</script>